﻿using System.ComponentModel.DataAnnotations;

namespace IBuproModel
{
    [MetadataType(typeof(ProjectMetadata))]
    public partial class Project
    {
        class ProjectMetadata
        {
            [Required(ErrorMessage = "Project Name is required")]
            public string Name { get; set; }

            [Required(ErrorMessage = "Project Details are required")]
            public string Detail { get; set; }

            [Required(ErrorMessage = "Project Shortcut is required")]
            public string Shortcut { get; set; }

            [Required(ErrorMessage = "Project Approved status is required")]
            public bool Approved { get; set; }
        }
    }
}